home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Toolbox / Visual Basic Toolbox (P.I.E.)(1996).ISO / gauge / cargauge / test.frm < prev    next >
Text File  |  1994-12-13  |  6KB  |  218 lines

  1. VERSION 2.00
  2. Begin Form Form1 
  3.    BackColor       =   &H00C0C0C0&
  4.    Caption         =   "Global Magic, Inc. Car Gauge Test"
  5.    ClientHeight    =   4560
  6.    ClientLeft      =   1245
  7.    ClientTop       =   1590
  8.    ClientWidth     =   7470
  9.    Height          =   4965
  10.    Left            =   1185
  11.    LinkTopic       =   "Form1"
  12.    ScaleHeight     =   4560
  13.    ScaleWidth      =   7470
  14.    Top             =   1245
  15.    Width           =   7590
  16.    Begin CARGAUGE CarGauge1 
  17.       BackColor       =   &H00C0C0C0&
  18.       BevelInner      =   1  ' 1 - Raised
  19.       BevelOuter      =   2  ' 2 - Inset
  20.       BevelWidth      =   2
  21.       BorderWidth     =   2
  22.       DisplayMode     =   1  ' 1 - Tachometer 2
  23.       FontSize        =   15
  24.       GaugeValue      =   0
  25.       Height          =   3255
  26.       Left            =   600
  27.       MouseControl    =   0   'False
  28.       TabIndex        =   13
  29.       Top             =   960
  30.       Value           =   0
  31.       Width           =   3495
  32.    End
  33.    Begin CommandButton Command2 
  34.       Caption         =   "Help"
  35.       Height          =   495
  36.       Left            =   5880
  37.       TabIndex        =   12
  38.       Top             =   3840
  39.       Width           =   1335
  40.    End
  41.    Begin CommandButton Command1 
  42.       Caption         =   "Exit"
  43.       Height          =   495
  44.       Left            =   4320
  45.       TabIndex        =   11
  46.       Top             =   3840
  47.       Width           =   1335
  48.    End
  49.    Begin Frame Frame1 
  50.       BackColor       =   &H00C0C0C0&
  51.       Caption         =   "Gauge Type"
  52.       ForeColor       =   &H00FF0000&
  53.       Height          =   2055
  54.       Left            =   4320
  55.       TabIndex        =   3
  56.       Top             =   960
  57.       Width           =   2895
  58.       Begin OptionButton Option1 
  59.          BackColor       =   &H00C0C0C0&
  60.          Caption         =   "Speedometer"
  61.          Height          =   195
  62.          Index           =   5
  63.          Left            =   240
  64.          TabIndex        =   10
  65.          Top             =   1560
  66.          Width           =   2235
  67.       End
  68.       Begin OptionButton Option1 
  69.          BackColor       =   &H00C0C0C0&
  70.          Caption         =   "Oil Pressure Gauge"
  71.          Height          =   195
  72.          Index           =   4
  73.          Left            =   240
  74.          TabIndex        =   9
  75.          Top             =   1320
  76.          Width           =   2235
  77.       End
  78.       Begin OptionButton Option1 
  79.          BackColor       =   &H00C0C0C0&
  80.          Caption         =   "Temperature Gauge"
  81.          Height          =   195
  82.          Index           =   3
  83.          Left            =   240
  84.          TabIndex        =   8
  85.          Top             =   1080
  86.          Width           =   2235
  87.       End
  88.       Begin OptionButton Option1 
  89.          BackColor       =   &H00C0C0C0&
  90.          Caption         =   "Amp Gauge"
  91.          Height          =   195
  92.          Index           =   2
  93.          Left            =   240
  94.          TabIndex        =   7
  95.          Top             =   840
  96.          Width           =   2235
  97.       End
  98.       Begin OptionButton Option1 
  99.          BackColor       =   &H00C0C0C0&
  100.          Caption         =   "Tachometer"
  101.          Height          =   195
  102.          Index           =   1
  103.          Left            =   240
  104.          TabIndex        =   6
  105.          Top             =   600
  106.          Width           =   2235
  107.       End
  108.       Begin OptionButton Option1 
  109.          BackColor       =   &H00C0C0C0&
  110.          Caption         =   "Fuel Level Gauge"
  111.          Height          =   195
  112.          Index           =   0
  113.          Left            =   240
  114.          TabIndex        =   5
  115.          Top             =   360
  116.          Width           =   2235
  117.       End
  118.    End
  119.    Begin CheckBox Check2 
  120.       BackColor       =   &H00C0C0C0&
  121.       Caption         =   "Mouse Control"
  122.       Height          =   225
  123.       Left            =   5010
  124.       TabIndex        =   1
  125.       Top             =   300
  126.       Width           =   1755
  127.    End
  128.    Begin VScrollBar VScroll1 
  129.       Height          =   3255
  130.       Index           =   0
  131.       LargeChange     =   5
  132.       Left            =   120
  133.       Max             =   250
  134.       TabIndex        =   0
  135.       Top             =   960
  136.       Width           =   285
  137.    End
  138.    Begin Label Label4 
  139.       Height          =   495
  140.       Left            =   4320
  141.       TabIndex        =   4
  142.       Top             =   3120
  143.       Width           =   2895
  144.    End
  145.    Begin Label Label1 
  146.       BackColor       =   &H00FFFFFF&
  147.       BackStyle       =   0  'Transparent
  148.       BorderStyle     =   1  'Fixed Single
  149.       Height          =   285
  150.       Left            =   720
  151.       TabIndex        =   2
  152.       Top             =   210
  153.       Width           =   1185
  154.    End
  155. End
  156. Sub CarGauge1_Change (x As Single, Y As Single)
  157.  
  158.     CarGauge2 = instrument1
  159.     Label4.Caption = Str(CarGauge1.GaugeValue) & " is current value"
  160. End Sub
  161.  
  162. Sub CarGauge1_Click ()
  163.  
  164.     label1 = "Click!"
  165.  
  166. End Sub
  167.  
  168. Sub Check2_Click ()
  169.  
  170.     CarGauge1.MouseControl = check2
  171.  
  172. End Sub
  173.  
  174. Sub Command1_Click ()
  175.     End
  176. End Sub
  177.  
  178. Sub Command2_Click ()
  179.  
  180.       x = Shell("winhelp.exe instrum.hlp", 1)
  181.  
  182. End Sub
  183.  
  184. Sub Option1_Click (index As Integer)
  185.  
  186.     CarGauge1.DisplayMode = index
  187.     Label4 = " "
  188. End Sub
  189.  
  190. Sub VScroll1_Change (index As Integer)
  191.  
  192.     Select Case index
  193.         Case 0
  194.             CarGauge1 = vscroll1(index) / 250
  195.         Case 1
  196.             CarGauge1 = vscroll1(index) / 250
  197.     End Select
  198.  
  199.     Label4.Caption = Str(CarGauge1.GaugeValue) & " is current value"
  200.  
  201.  
  202. End Sub
  203.  
  204. Sub VScroll1_Scroll (index As Integer)
  205.  
  206.     Select Case index
  207.         Case 0
  208.             CarGauge1 = vscroll1(index) / 250
  209.         Case 1
  210.             CarGauge1 = vscroll1(index) / 250
  211.     End Select
  212.  
  213.     Label4.Caption = Str(CarGauge1.GaugeValue) & " is current value"
  214.  
  215.  
  216. End Sub
  217.  
  218.